Skip to content

feat: add agentic mode (q --agentic) with multi-step command loop#9

Open
pridolfi wants to merge 1 commit intomainfrom
agentic
Open

feat: add agentic mode (q --agentic) with multi-step command loop#9
pridolfi wants to merge 1 commit intomainfrom
agentic

Conversation

@pridolfi
Copy link
Copy Markdown
Owner

@pridolfi pridolfi commented Apr 8, 2026

Add POST /agentic on the host server: the model returns JSON for either the next shell command or a final answer, using goal plus command history (stdout, stderr, exit code). The injected q client prompts before each run, prints output locally, forwards truncated capture to the server, and respects SSHQ_AGENTIC_MAX_STEPS and SSHQ_AGENTIC_MAX_OUTPUT_CHARS.

Document usage in README and extend the environment table. Add server tests for /agentic and compile-check the injected script in test_cli.

Add POST /agentic on the host server: the model returns JSON for either the
next shell command or a final answer, using goal plus command history (stdout,
stderr, exit code). The injected `q` client prompts before each run, prints
output locally, forwards truncated capture to the server, and respects
SSHQ_AGENTIC_MAX_STEPS and SSHQ_AGENTIC_MAX_OUTPUT_CHARS.

Document usage in README and extend the environment table. Add server tests
for /agentic and compile-check the injected script in test_cli.

Signed-off-by: Pablo Ridolfi <pridolfi@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant